import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '',
            dataIndex: 'employeeId',
            width: 200,
        },
        {
            title: '原机场',
            dataIndex: 'oldAirportId',
            width: 200,
        },
        {
            title: '现机场',
            dataIndex: 'newAirportId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'oldTargetId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'newTargetId',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '',
            field: 'employeeId',
            component: 'Input',
            required: true,
        },
        {
            label: '原机场',
            field: 'oldAirportId',
            component: 'Input',
            required: true,
        },
        {
            label: '现机场',
            field: 'newAirportId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'oldTargetId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'newTargetId',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
